package Application.FirstApplication.xmlPrase
{
	import Application.FirstApplication.def.Manager;
	
	public class EntityFloorXML
	{
		private var _data : Object;
		
		public function EntityFloorXML()
		{
		}
		
		public function prase() : void
		{
			_data = new Object;
			
			var orgXML : XML = Manager.Source.getXML("buildFloor");
			
			for each(var element:XML in orgXML.elements("item"))
			{
				var objInfo : Object = new Object;
				objInfo["id"] = element.@id.toString();
				objInfo["floor"] = element.@floor.toString();
				
				_data[objInfo["id"]]=objInfo;
			}
			
		}
		
		public function  Floor(type : String) : Array
		{
			return _data[type]["floor"].split(",");
		}
		
		public function get Data() : Object
		{
			return _data;
		}
	}
}